﻿@model DLM.Web.ViewModel.MyInvitationPageView
@using Webdiyer.WebControls.Mvc;
@{
    ViewBag.Title = "MyInvitation";
    Layout = "~/Views/Shared/_Master.cshtml";
}

<script type="text/javascript">
    function onInvitateSuccessed() {
        ShowDialogMessage('right', "您的操作已成功！");
    }


    function onInvitateFaliedajaxContext() {
        ShowDialogMessage("warn", ajaxContext.responseText);
    }
</script>
<div class="main">
    <div class="main_tab_2">
        <div class="main_tab_2_up">
            <ul>
                <li class="current"><a href="#">有新邀请</a></li>
                <li><a href="#">已发邀请</a></li>
            </ul>
        </div>
        <div class="main_tab_2_down">
            <div id="divMyInvitation" class="box">
                <h3>
                    <a>总共有 @Model.MyInvitations.Count()份邀请 </a>
                </h3>
                <div class="tr clearfix">
                    <div id="divMyInvitationRequest" class="friend_list">
                        @{Html.RenderPartial("_MyInvitation", Model.MyInvitations);}
                    </div>
                </div>
            </div>
            <div id="divLog" class="box" style="display:none;">
                <h3>
                    <a>总共有 @Model.Histories.Count()条记录 </a>
                </h3>
                <div class="tr clearfix">
                    <div id="divInvitationHistory" class="friend_list">
                        @{Html.RenderPartial("_InvitationHistoy", Model.Histories);}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
